package com.qfedu.service.impl;

import com.qfedu.bean.HpRecover;
import com.qfedu.bean.PageVo;
import com.qfedu.dao.HpRecoverDao;
import com.qfedu.service.IHpRecoverService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HpRecoverServiceImpl implements IHpRecoverService {

    @Autowired
    private HpRecoverDao hpRecoverDao;

    @Override
    public HpRecover selectById(Integer id) {
        System.out.println(hpRecoverDao);
        return hpRecoverDao.selectById(1);
    }

    @Override
    public int insert(HpRecover hpRecover) {
        return hpRecoverDao.insert(hpRecover);
    }

    @Override
    public int deleteById(Integer id) {
        return hpRecoverDao.deleteById(id);
    }

    @Override
    public int update(HpRecover hpRecover) {
        return hpRecoverDao.update(hpRecover);
    }

    @Override
    public List selectAll() {
        return hpRecoverDao.selectAll();
    }

    @Override
    public List selectByBage(PageVo vo) {
        return hpRecoverDao.selectByPage(vo);
    }

    @Override
    public int count() {
        return hpRecoverDao.count();
    }
}
